public class AffectableSpeed
{
	private bool goodEffectActive = false;
	private bool badEffectActive = false;
	private bool isBuilder = false;
	
	public AffectableSpeed(bool typeBuilder){
		isBuilder = typeBuilder;
	}
	
	public float get(){
		if(goodEffectActive){
			if(isBuilder){
				return Balance.BUILDER_SPEED_AFFECTED_GOOD;
			}
			else{
				return Balance.DESTROYER_SPEED_AFFECTED_GOOD;
			}
		}
		else if(badEffectActive){
			if(isBuilder)
				return Balance.BUILDER_SPEED_AFFECTED_BAD;
			else
				return Balance.DESTROYER_SPEED_AFFECTED_BAD;
		}
		else{
			if(isBuilder)
				return Balance.BUILDER_SPEED;
			return Balance.DESTROYER_SPEED;
		}
	}

	public void enableGoodEffect()
	{
		goodEffectActive = true;
	}
	public void disableGoodEffect()
	{
		goodEffectActive = false;
	}
	public void enableBadEffect()
	{
		badEffectActive = true;
	}
	public void disableBadEffect()
	{
		badEffectActive = false;
	}
	public bool isGoodEffectActive()
	{
		return goodEffectActive;
	}
	public bool isBadEffectActive()
	{
		return badEffectActive;
	}
	
}
